package com.fangzc.springboot.demo.common.exception;

/**
 * Copyright (C) 2014-2016 天津紫藤科技有限公司. Co. Ltd. All Rights Reserved.
 *
 * @author fangzc
 * @version v1
 * @description service层运行时异常
 * @date 2019-5-28
 */
public class ServiceException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private String message;

    private Throwable throwable;

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }
}
